removeProperty

abstract fun removeProperty(name: String): Boolean

Removes a property with the given name in the JavaScript object and returns true if the property was successfully removed. Once you remove the property, it will not be available in the current JavaScript object anymore.

Return

true if the property was successfully removed

Parameters

name

a string that represents the name of the property or function

Throws

when name is empty or blank

when the JavaScript object is already disposed or invalid